﻿///***************************************************************
/// 시  스  템 : Updms.Prj.Exe
/// 단위시스템 : PRJ
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Prj2010r_NT
/// 파  일  명 : Prj2010r_NT.cs
/// 설      명 : 프로젝트진척챠트
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-08-25 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Prj.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Prj2010r_NT : Base.AppFramework.RuleBase
	{
		public Prj2010r_NT()
		{
		}

		#region GetCountByDivNStatus
		
		/// <summary>
		/// 프로젝트의 구분/상태별 등록수를 가져온다
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetCountByDivNStatus(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r _dac = new Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r())
			{
				return _dac.GetCountByDivNStatus(lo_dp);
			}
		}
		
		#endregion

		#region GetCompleteRateByPrjId

		/// <summary>
		/// 프로젝트별 완료처리율
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetCompleteRateByPrjId()
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r _dac = new Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r())
			{
				return _dac.GetCompleteRateByPrjId();
			}
		}

		#endregion

		#region GetMonthlyCompleteRateByPrjId

		/// <summary>
		/// 완료율(프로젝트별,월별)
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetMonthlyCompleteRateByPrjId(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r _dac = new Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r())
			{
				return _dac.GetMonthlyCompleteRateByPrjId(lo_dp);
			}
		}

		#endregion

		#region GetWeeklyCompleteRateByPrjId

		/// <summary>
		/// 완료율(프로젝트별,주별)
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetWeeklyCompleteRateByPrjId(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r _dac = new Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r())
			{
				return _dac.GetWeeklyCompleteRateByPrjId(lo_dp);
			}
		}

		#endregion

		#region GetCountByWorkTp

		/// <summary>
		/// 업무구분별 건수
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetCountByWorkTp(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r _dac = new Dac.Prj_Dac_UPDMS_PRJ_REPORT_Prj2010r())
			{
				return _dac.GetCountByWorkTp(lo_dp);
			}
		}

		#endregion		
		
	}
}
